package com.ibeeking.found.msg.service.common.vo;

import com.ibeeking.nematos.utils.date.DateUtil;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.text.SimpleDateFormat;
import java.util.Date;

@Data
@Accessors(chain = true)
public class WxMpMessageReturnVO implements Serializable {

    private String id;

    private String appId;

    private String toUserName;

    private String fromUserName;

    private Long wxmpCreateTime;

    private String msgType;

    private String content;

    private String mediaId;

    private String title;

    private String description;

    private String musicUrl;

    private String hqMusicUrl;

    private String thumbMediaId;

    private String picUrl;

    private String url;

    private String createTime;

    public  String getWxMpCreateTime(){
        Date date = new Date(wxmpCreateTime);
        SimpleDateFormat simpleDateFormat = new SimpleDateFormat(DateUtil.YYYY_MM_DD_HH_MM_SS);
        return simpleDateFormat.format(date);
    }

}
